#pragma once
#include <SDL/SDL.h>
#include <so_math.h>
enum class ImageDirect
{
    UP,
    DOWN,
    LEFT,
    RIGHT
};
class Resource;
class Image
{
    friend Resource;

private:
    SDL_Surface *data = nullptr;
    ImageDirect imgdirect;
    real angle;
    SDL_Texture *texture = nullptr;
public:
    Image();
    ~Image();
    SDL_Surface *getSurface();
    ImageDirect getImageDirect();
    SDL_Texture *getTexture(SDL_Renderer * renderer);
    real getAngle();
};
